Dialog Font Flag Constants
You can set the following bits in the dialog font table resource
'dftb'
to specify fields in the dialog font table that should be used. Dialog font flag constants are available with Appearance Manager 1.0 and later.
enum {
kDialogFontNoFontStyle = 0,
kDialogFontUseFontMask = 0x0001,
kDialogFontUseFaceMask = 0x0002,
kDialogFontUseSizeMask = 0x0004,
kDialogFontUseForeColorMask = 0x0008,
kDialogFontUseBackColorMask = 0x0010,
kDialogFontUseModeMask = 0x0020,
kDialogFontUseJustMask = 0x0040,
kDialogFontUseAllMask = 0x00FF,
kDialogFontAddFontSizeMask = 0x0100,
kDialogFontUseFontNameMask = 0x0200
};
Constant descriptions
-
kDialogFontNoFontStyle
-
If the
kDialogFontNoFontStyle
constant is used, no font style information is applied.
-
kDialogFontUseFontMask
-
If the
kDialogFontUseFontMask
flag (bit 0) is set, the font ID specified in the Font ID field of the dialog font table is applied.
-
kDialogFontUseFaceMask
-
If the
kDialogFontUseFaceMask
flag (bit 1) is set, the font style specified in the Style field of the dialog font table is applied.
-
kDialogFontUseSizeMask
-
If the
kDialogFontUseSizeMask
flag (bit 2) is set, the font size specified in the Font Size field of the dialog font table is applied.
-
kDialogFontUseForeColorMask
-
If the
kDialogFontUseForeColorMask
flag (bit 3) is set, the text color specified in the Text Color field of the dialog font table is applied. This flag only applies to static text controls.
-
kDialogFontUseBackColorMask
-
If the
kDialogFontUseBackColorMask
flag (bit 4) is set, the background color specified in the Background Color field of the dialog font table is applied. This flag only applies to static text controls.
-
kDialogFontUseModeMask
-
If the
kDialogFontUseModeMask
flag (bit 5) is set, the text mode specified in the Text Mode field of the dialog font table is applied.
-
kDialogFontUseJustMask
-
If the
kDialogFontUseJustMask
flag (bit 6) is set, the text justification specified in the Justification field of the dialog font table is applied.
-
kDialogFontUseAllMask
-
If the
kDialogFontUseAllMask
constant is used, all flags in this mask will be set except
kDialogFontAddFontSizeMask
and
kDialogFontUseFontNameMask
.
-
kDialogFontAddFontSizeMask
-
If the
kDialogFontAddFontSizeMask
flag (bit 8) is set,
the Dialog Manager will add a specified font size to the existing font size indicated in the
Font Size
field
of the dialog font table resource.
-
kDialogFontUseFontNameMask
-
If the
kDialogFontUseFontNameMask
flag (bit 9) is set, t
he Dialog Manager will use the string in the Font Name field for the font name
instead of a font ID.
© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98) Previous | Back Up One Level | Next |